package com.example.project.dto.request;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CategoryRequest {
    private Long parentId;
    
    @NotBlank(message = "分类名称不能为空")
    private String name;
    
    private String icon;
    
    @NotNull(message = "排序不能为空")
    private Integer sort;
    
    @NotNull(message = "层级不能为空")
    private Integer level;
} 